package day16.pintu_test;

import java.util.Random;

public class Test5 {
    public static void main(String[] args) {

// 1,2,4,3
        int[] tempArr = {7,2,13,12,5,8,3,10,6,4,14,0,11,9,1,15};
        int count = 0;
        for (int i = 0; i < tempArr.length; i++) {
            for (int j = i + 1; j < tempArr.length; j++) {
                if (tempArr[j] < tempArr[i]) {
                    count++;
                }
            }
        }
        System.out.println();
        System.out.println(count);
    }
}